<!DOCTYPE html>
<!-- thymeleaf -->
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>show.html</title>
</head>
<body>
<!--<div th:if="${employee != null}">-->
<!--    <h1 th:text="您好  + ${employee.firstName}"></h1><br/>-->
<!--    <p th:text="您的密码是 + ${employee.lastName}"></p>-->
<!--    <p th:text="您的Id是 + ${employee.email}"></p>-->
<!--    <p th:text="您的Id是 + ${employee.id}"></p>-->
<div class="container my-2" th:if="${employee != null}">
    <h1>图书管理系统</h1>


    <table border="1" class = "table table-striped table-responsive-md">
        <thead>
        <tr>
            <th>
                <a th:href="@{'/page/' + ${currentPage} + '?sortField=email&sortDir=' + ${reverseSortDir}}">
                    id</a>
            </th>
            <th>
                <a th:href="@{'/page/' + ${currentPage} + '?sortField=firstName&sortDir=' + ${reverseSortDir}}">
                    书名</a>
            </th>
            <th>
                <a th:href="@{'/page/' + ${currentPage} + '?sortField=lastName&sortDir=' + ${reverseSortDir}}">
                    价格</a>
            </th>
            <th>
                <a th:href="@{'/page/' + ${currentPage} + '?sortField=email&sortDir=' + ${reverseSortDir}}">
                    作者</a>
            </th>
            <th>
                <a th:href="@{'/page/' + ${currentPage} + '?sortField=email&sortDir=' + ${reverseSortDir}}">
                    索书号</a>
            </th>
        </tr>
        </thead>
        <tbody>
        <tr >
            <td th:text="${employee.id}"></td>
            <td th:text="${employee.firstName}"></td>
            <td th:text="${employee.lastName}"></td>
            <td th:text="${employee.email}"></td>
            <td th:text="${employee.department}"></td>
        </tr>
        </tbody>
    </table>
    <hr>

    <a th:href="@{/}"> 返回</a>
</div>
<div th:if="${employee == null}">
    <h1>对不起，您要查找的书籍不存在！</h1>
    <hr>

    <a th:href="@{/}">返回</a>
</div>

</body>
</html>
<tbody>


